package cn.bs.busuo.account.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@TableName("main_sight_type")
public class SightType implements Serializable {
    /**
     * 数据ID
     */
    @NotNull(message = "[数据ID]不能为空")
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("数据ID")
    private Long id;
    /**
     * 景点ID
     */
    @ApiModelProperty("景点ID")
    private Long sightsId;
    /**
     * 景点门票类型名
     */
    @Size(max = 50, message = "编码长度不能超过50")
    @ApiModelProperty("景点门票类型名")
    @Length(max = 50, message = "编码长度不能超过50")
    private String ticketName;
    /**
     * 门票总数(冗余)
     */
    @ApiModelProperty("门票总数(冗余)")
    private Long total;
    /**
     * 可用门票数(冗余)
     */
    @ApiModelProperty("可用门票数(冗余)")
    private Long usable;
    /**
     * 门票单价
     */
    @ApiModelProperty("门票单价")
    private Long saleUnitPrice;
    /**
     * 审核状态，0=未审核，1=审核通过，2=拒绝审核
     */
    @ApiModelProperty("审核状态，0=未审核，1=审核通过，2=拒绝审核")
    private Integer checkState;
}
